﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Teacher:person
    {
        public string title { get; set; }
        public string wageno { get; set; }

        public Teacher(int Id, string Name, char Sex, string Cardid, string Tel, string title, string wageno)
            : base(Id, Name, Sex, Cardid, Tel)
        {

            this.title = title;
            this.wageno = wageno;


        }
        public void Test1()
        {
            base.Speak();
            Console.WriteLine("职称{0}、工资号{1}", this.title, this.wageno);
        }
    }
}
